"""apps URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import include

'''
路由分发(include)
1、在每个 app 目录里都创建一个 urls.py 文件。
2、在项目名称目录下的 urls 文件里，统一将路径分发给各个 app 目录。
命名空间
命名空间（英语：Namespace）是表示标识符的可见范围。
include(("app名称：urls"，"app名称-命名空间"))
path("login/", views.login, name="命名空间")
在 views.py 中使用名称空间，语法格式如下： reverse("app名称：路由别名")
'''
urlpatterns = [
    #path('admin/', admin.site.urls),
    path('api/v1/', include('apps.app.urls'))
]
